<template>
    <el-breadcrumb
      separator="/"
      class="mb-2 mt-1"
      style="vertical-align: bottom"
    >
      <el-breadcrumb-item>
        <div class="flex align-center">
          <el-icon :size="18"> <User /> </el-icon
          ><span class="pl">顧客管理</span>
        </div>
      </el-breadcrumb-item>
      <el-breadcrumb-item>订阅列表</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card class="box-card" shadow="hover">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
        <el-tab-pane label="直播訂閱" name="live">
          <sub-list type="live"></sub-list>
        </el-tab-pane>
        <el-tab-pane label="訂單訂閱" name="order">
           <sub-list type="order"></sub-list>
        </el-tab-pane>
         <el-tab-pane label="優惠訂閱" name="favor">
           <sub-list type="favor"></sub-list>
        </el-tab-pane>
      </el-tabs>
    </el-card>
</template>
<script lang="ts" setup>
import { ref, onMounted } from "vue";
import { Search, User } from "@element-plus/icons-vue";
import SubList from "./subs/SubList.vue";
const activeName = ref("live");

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};
</script>

<style lang="scss" scoped></style>
@/api/live